import SvgIcon from './SvgIcon/index.vue'
import Category from './Category/index.vue'
//引入全部图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//全局对象
const allGloabComponent = { SvgIcon, Category }

//对外暴露插件对象
export default {
  install(app) {
    // console.log(`output->app`,app)
    Object.keys(allGloabComponent).forEach((key) => {
      app.component(key, allGloabComponent[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
